package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Administrator
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户解冻余额缓存，凌晨定时加入余额实体类")
public class ShopOrderPointsToAccount {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @ApiModelProperty(name = "userNo", value = "归属用户no", dataType = "String")
    private String userNo;

    @ApiModelProperty(name = "sourceBizNo", value = "来源编号积分表中的No,或者订单的No", dataType = "String")
    private String sourceBizNo;

    @ApiModelProperty(name = "changeMoney", value = "变动金额", dataType = "BigDecimal")
    private BigDecimal changeMoney;

    @ApiModelProperty(name = "type", value = "0默认 1用户解冻余额 2拉新余额等", dataType = "String")
    private Integer type;

    @ApiModelProperty(name = "createTime", value = "创建时间", dataType = "Date")
    private Date createTime;

    @ApiModelProperty(name = "resultTime", value = "打入账户时间", dataType = "Date")
    private Date resultTime;

    @ApiModelProperty(name = "isResult", value = "数据是否已处理", dataType = "Boolean")
    private Boolean isResult;

}